<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>


</head>
<body>
		<a href="addWorking.jsp">添加数据</a>
		<table border="1px">
		<tr>
			<th>笔记标题</th><th>笔记分类</th><th>编写时间</th><th>操作1</th><th>操作2</th><th>操作3</th>
		</tr>
		<c:forEach var="list" items="${list}" varStatus="statu" >
		
		<tr>
		<td>${list.title }</td>	
		<td>${list.type==1? '技术' : '' }	
			${list.type==2? '行政' : '' }
			${list.type==3? '人事' : '' }
		</td>								
		<td>${list.createDate }</td>
		<td><a href="DeleteServlet?id=${list.id }">删除</a></td>
		<td><a href="IdSelectServlet?id=${list.id}&num=select">查看</a></td>
		<td><a href="IdSelectServlet?id=${list.id}&num=update">修改</a></td>
		</tr>
		</c:forEach>
		</table>

		
<script src="jquery-1.12.4.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function(){
		$("tr:odd").css("background", "red");
		//$("tr:even").css("background", "red");
	})
</script>
</body>
</html>